﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Airfare.aspx.cs" Inherits="Admin_Airfare" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="height: 256px; width: 820px" >
        <tr>
            <td style="text-align: center">
                Danh sách vé</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    Width="820px">
                    <Columns>
                        <asp:BoundField DataField="airfareID" HeaderText="Mã vé" />
                        <asp:BoundField DataField="flightID" HeaderText="Mã chuyến bay" />
                        <asp:BoundField DataField="userName" HeaderText="Người mua" />
                        <asp:BoundField DataField="className" HeaderText="Hạng ghế" />
                        <asp:BoundField DataField="airfareTypeName" HeaderText="Loại vé" />
                        <asp:TemplateField HeaderText="Thao tác">
                            <ItemTemplate>
                                <table >
                                    <tr>
                                        <td>
                                            <asp:LinkButton ID="lbEdit" runat="server" 
                                                CommandArgument='<%# Eval("airfareID","{0}") %>' onclick="lbEdit_Click" 
                                                CommandName="Select">Sửa</asp:LinkButton>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="lbDelete" runat="server" 
                                                CommandArgument='<%# Eval("airfareID","{0}") %>' onclick="lbDelete_Click" 
                                                CommandName="Select" onclientclick="return confirm('Are you sure?');">Xóa</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        
    </table>
</asp:Content>

